//
//  LocalData.h
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2021/12/10.
//

#import <Foundation/Foundation.h>
#import "UserInfoModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface LocalData : NSObject

///保存token
+ (void)saveToken:(NSString *)token;
///获取token
+ (NSString *)getToken;
///删除token
+ (void)deleteToken;

+ (void)saveUserInfoDic:(NSDictionary *)userInfoDic;
+ (UserInfoModel *)fetchUserInfo;
+ (void)clearLoginInfo;

///保存头像
+ (void)saveHeadStr:(NSString *)headStr;
///获取头像
+ (NSString *)getHeadStr;
///删除头像
+ (void)deleteHeadStr;

///保存屏蔽的内容
+ (void)saveShieldContentWithGameId:(NSString *)gameId commentId:(NSString *)commentId;
///获取当前gameId的所有屏蔽的id
+ (NSArray *)getShieldContentWithGameId:(NSString *)gameId;

///保存屏蔽的用户id
+ (void)saveShieldUsersWithUserInfoDic:(NSDictionary *)userInfoDic;
///获取当前用户屏蔽的所有用户id
+ (NSArray *)getShieldUsers;
///删除黑名单用户
+ (void)deleteShieldUser:(NSString *)userId;

+ (id)getMenudicWithKey:(NSString *)key;

@end

NS_ASSUME_NONNULL_END
